/**
 * default config
 */
module.exports = {
  port: 3000,
  host: '127.0.0.1',
  createServer: undefined,
  startServerTimeout: 3000,
  processKillTimeout: 10 * 1000,
  codeField: 'code',
  msgField: 'msg',
  dataField: 'data',
  defaultCode: 0,
  handlerErrCode: 1000,
  validateDefaultErrno: 1001,
  microservice: false,
  nacos: {
    serverList: '',
    namespace: ''
  },
  grpcServer: {
    protoPath: 'proto/server',
    servicePath: 'grpcService',
    host: '0.0.0.0',
    port: 50010,
    loaderOption: {
      keepCase: true,
      longs: String,
      enums: String,
      defaults: true,
      oneofs: true
    }
  },
  grpcClient: {
    protoPath: 'proto/client',
    loaderOption: {
      keepCase: true,
      longs: String,
      enums: String,
      defaults: true,
      oneofs: true
    }
  },
  rabbitmq: {
    url: []
  },
  fileUpload: {
    addToBody: true,
    limit: {}
  }
};
